export function getConfig() {
    return new Promise(resolve => {
        const xhr = new XMLHttpRequest()
        xhr.open('GET', import.meta.env.VITE_RESOURCE + 'desktop/config')
        xhr.onload = function() {
            resolve(JSON.parse(xhr.response))
        }
        xhr.send(null)
    })
}